<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  title="素材信息修改" width="1200px" class="dialogStyleBase" :visible.sync="boxVisible" append-to-body>
    <div class="main">
        <el-form label-width="70px" label-position="left">

            <el-row :gutter="40">
                <el-col span="8">
                    <el-form-item label="图文名称" prop="name">
                        <el-input v-model="name" :maxlengt="30"></el-input>
                    </el-form-item>
                </el-col>
                <el-col span="8">
                    <el-form-item label="所在分组">
                        <el-select v-model="albumId" placeholder="请选择">
                            <el-option v-for="item in listAlbum" :key="item.id" :label="item.name" :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>

                </el-col>
                <el-col span="8">
                    <el-form-item label="素材同步" prop="name">
                        <el-switch v-model="isWechat" :inactive-value="0" :active-value="1">
                        </el-switch>
                        <span class="s1">同步至微信公众平台</span>
                    </el-form-item>
                </el-col>
            </el-row>


        </el-form>
        <div class="wrap">

            <div class="ll">
                <div :class="'li '+(selectIndex==index)" v-for="(item,index) in albumInfoItemLst"
                    @click="selectIndex=index" :key="index">{{item.title?item.title:'新建图文'}}</div>
                <div class="li" @click="addItem()">新增</div>
            </div>
            <div class="rr" v-for="(item,index) in albumInfoItemLst" :key="index" v-if="selectIndex==index">
                <itemTuwen :appWindow="appWindow" :isWechat="isWechat" :value="item"></itemTuwen>
            </div>


        </div>
    </div>
    <!-- <div style="display: none;">{{list}}<br /></div> -->
    <div slot="footer">
        <el-button :disabled="loading"  @click="editBoxCancel()">取消</el-button>
        <el-button :disabled="loading"  type="primary" @click="submit()">保存</el-button>
    </div>

</el-dialog>